<?php 
$i = 0;
while (1)
  {

$ch = curl_init(); 
$timeout = 5; // set to zero for no timeout 

curl_setopt ($ch, CURLOPT_URL, 'http://6ab56b5.169.thot.sec-l.org/'); 
curl_setopt($ch, CURLOPT_USERPWD, "mare_u:kdmw*(=own");
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); 
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); 
$file_contents = curl_exec($ch); 
curl_close($ch);


$fichier = fopen('file.'.$i,'w+');
fputs($fichier, $file_contents);
  
 $i++;
}

?> 

